defensive copy meaning in English
保护性拷贝
Examples
- Prudence would dictate that defensive copies are needed when calling them , too
谨慎的做法是,在调用存取器方法时也使用防御性副本。 - You must also be prepared to accept the performance overhead of making defensive copies where necessary
您还要准备着接受在必要时创建防御副本的性能开销。 - And in the absence of clear documentation , you must make defensive copies on both sides of a method call
而缺乏清楚的文档说明时,您必须在方法调用的两边都创建防御副本。 - Accessors for immutable properties will always have value semantics and do not need the defensive copying on either side of the call , making them more efficient
不可变属性的存取器将总是具有值引用,因而调用的任何一方都不需要防御性复制,这使得它们效率更高。 - Every time an object on the screen moved even the mouse probably seemed daunting at the time , and the overhead of making defensive copies probably seemed out of the question . in hindsight , the decision to make
那时,每当一个对象(甚至是鼠标)在屏幕上移动就创建一个新的point的对象创建开销可能有些让人生畏,而创建防御性副本的开销则不在话下。